import request from '@/utils/request'

// 查询小区挪车列表
export function listCarMove(query) {
  return request({
    url: '/service/carMove/list',
    method: 'get',
    params: query
  })
}

// 查询小区挪车详细
export function getCarMove(id) {
  return request({
    url: '/service/carMove/' + id,
    method: 'get'
  })
}

// 新增小区挪车
export function addCarMove(data) {
  return request({
    url: '/service/carMove',
    method: 'post',
    data: data
  })
}

// 修改小区挪车
export function updateCarMove(data) {
  return request({
    url: '/service/carMove',
    method: 'put',
    data: data
  })
}

// 删除小区挪车
export function delCarMove(id) {
  return request({
    url: '/service/carMove/' + id,
    method: 'delete'
  })
}
